package com.example.tianling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tianling.entity.BookEntity;

import java.util.List;

public interface BookService extends IService<BookEntity> {
    BookEntity getBookByBookId(Integer bookId);
    List<BookEntity> getBooksByArea(String area, String type);
    BookEntity getDefaultBook(String type, String area);
    BookEntity getNextBook(String type, String area,Integer bookId,String description,String keyword);
    BookEntity getLastBook(String type, String area,Integer bookId,String description,String keyword);
    List<BookEntity> getBooksByAreaAndTheme(String area, String type,String describe,Integer pageNum,String keyword);
    List<BookEntity> searchBooks(String keyword,Integer pageNum);

    List<String> getIdea(Integer bookId);
    String getRightAnnswer(Integer bookId);

    void orderBook();
}
